Fix UDI_QUEUE_EMPTY in case someone wants to use it...
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 25 Aug 2003 21:17:06 +0000 (21:17 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 25 Aug 2003 21:17:06 +0000 (21:17 +0000)
gpsbabel/queue.h

index b6b46bceb05063530e4e680a76e66271c951085c..d7bfffd179c3f9974c0bd20945178f7c39fda4b1 100644 (file)
@@ -31,7 +31,7 @@ queue * dequeue(queue *element);
 #define QUEUE_FIRST(head) (head)->next
 #define QUEUE_NEXT(element) (element)->next
 #define QUEUE_LAST(head) (head)->prev
-#define QUEUE_EMPTY (head)->next = head
+#define QUEUE_EMPTY (head)->next == head
 
 #define ENQUEUE_TAIL(listhead, element) \
                enqueue(element, (listhead)->prev)